// Decompiled by DJ v3.5.5.77 Copyright 2003 Atanas Neshkov  Date: 2/3/2008 1:20:00 PM
// Home Page : http://members.fortunecity.com/neshkov/dj.html  - Check often for new version!
// Decompiler options: packimports(3) 

package com.lz.util;

import java.io.FileInputStream;
import java.io.InputStream;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Properties;

public class PropertyReader
{

    private PropertyReader()
    {
    }
    
    private static HashMap configMap=readProperty("bs.properties");

    //Reads the property configuration for the application
    private static HashMap readProperty(String propFileName)
    {
        HashMap hashmap = new HashMap();
        
        try
        {
            
            
            ClassLoader cl = PropertyReader.class.getClassLoader();
            InputStream is = cl.getResourceAsStream(propFileName);
            //FileInputStream fileinputstream = new FileInputStream(propFileName);
            Properties properties = new Properties();
            properties.load(is);
            String key;
            for(Iterator iterator = properties.keySet().iterator(); iterator.hasNext(); hashmap.put(key, properties.getProperty(key)))
                key = (String)iterator.next();

        }
        catch(Exception exception)
        {
            exception.printStackTrace();
        }
        return hashmap;
    }
    
    public static String getConfigProperty(String key){
	return (String)configMap.get(key);
    }
    

  
}